From: Eli Zaretskii Date: Sat, 23 Jun 2007 10:05:14 +0000 (+0000) Subject: Fix last change. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~18214 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c035d219d93fcf91ac6f680425f5de9d9b359c6f;p=emacs.git Fix last change. --- diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el index 5d6d68e3271..461e1ea44cc 100644 --- a/lisp/ls-lisp.el +++ b/lisp/ls-lisp.el @@ -230,9 +230,9 @@ that work are: A a c i r S s t u U X g G B C R and F partly." ;; there is no wildcard, only a directory name. (if (and ls-lisp-support-shell-wildcards (string-match "[[?*]" file) - ;; Prefer an existing directory to wildcards, like + ;; Prefer an existing file to wildcards, like ;; dired-noselect does. - (not (file-directory-p file))) + (not (file-exists-p file))) (progn (or (not (eq (aref file (1- (length file))) ?/)) (setq file (substring file 0 (1- (length file)))))